package com.example.chengww.myone.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;

import com.example.chengww.myone.R;

public class SearchActivity extends AppCompatActivity implements View.OnClickListener{

    private ImageView search_back,img_search;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_search);

        search_back = (ImageView) findViewById(R.id.search_back);
        search_back.setOnClickListener(this);
        img_search = (ImageView) findViewById(R.id.img_search);
        img_search.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.search_back:
                finish();
                break;
            case R.id.img_search:
                Toast.makeText(this,"搜索",Toast.LENGTH_SHORT).show();
                break;
        }
    }
}
